Skip to content

Qualify Java methods vs functions statement#734

Closed
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/qualify-methods-vs-functions
Closed

Qualify Java methods vs functions statement#734
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/qualify-methods-vs-functions

Conversation

@kovan
Copy link
Copy Markdown

@kovan kovan commented Mar 14, 2026

Changes "Can't store them or pass them as arguments" to "Can't be stored in vars or passed as arguments directly" in the Learn Clojure > Functions guide.

The original phrasing was technically correct but could be read as an absolute limitation. Adding "in vars" and "directly" makes it clearer that wrapping in a function (shown in the next example) is the standard workaround.

Fixes #715

Change "Can't store them or pass them as arguments" to "Can't be
stored in vars or passed as arguments directly" to be more precise.
Java methods can be wrapped in functions and then stored/passed, which
the next bullet already notes.

Fixes clojure#715
@puredanger
Copy link
Copy Markdown
Member

Author is not a contributor and this appears to be AI generated

@puredanger
Copy link
Copy Markdown
Member

Also this does not take into account Clojure 1.12 changes

@puredanger puredanger closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Java Interop section of Learn Clojure > Functions

2 participants